﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 菜单和工具
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            notifyIcon1.ShowBalloonTip(1000, "notifyIcon图标", "图标内容", ToolTipIcon.Info);
        }

        private void pictureBox1_ChangeUICues(object sender, UICuesEventArgs e)
        {

        }

        private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            if (this.Visible)
            {
                //Visible = false;
                this.Hide();
            }
            else
            {
                //Visible = true;
                this.Show();
            }
        }
    }
}
